<?php decorate_with(false) ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的照片 - 会员中心 - 世界名模大赛 - 官方网站</title>
<meta name="description" content="<?php include_slot('description') or print '2010 世界名模大赛-QQ炫舞天使评选-官方网站' ?> " />
<meta name="keywords" content="<?php include_slot('keywords') or print '2010,世界名模大赛,QQ炫舞天使评选,世界模特大赛,世界名模大赛官方网站'?> " />
<meta name="robots" content="index, follow" />
<?php include_stylesheets() ?>
<?php include_javascripts() ?>
</head>
<body>

<!--Head-->
<div class="head_main">
   <div class="head_main2">
     <h1><a href="<?php echo url_for('@homepage') ?>" target="_self"  class="head_main2_a">世界名模大赛</a></h1>
     <div class="head_dl">
        <?php if ($sf_user->isAuthenticated()): ?>
          <a href="<?php echo url_for('@application_edit?id=' . $sf_user->getAttribute('id')) ?>">选手中心</a>
          |
          <a href="<?php echo url_for('@session_destroy?id=' . $sf_user->getAttribute('id')) ?>">退出</a>
        <?php else: ?>
          <a href="<?php echo url_for('@session_new') ?>">登录选手中心</a>
        <?php endif ?>
     </div>   
   </div>
</div>
<div class="menu">
    <ul>
      <li>选择赛区：</li>
      <?php foreach ($areas as $area): ?>
      <li>
        <a href="<?php echo url_for('@area?area=' . $area->getSlug()) ?>" target="_self"><?php echo $area ?></a>
      </li>
      <?php endforeach ?>
    </ul>
    <div class="clears"></div>
</div>
<!--Content-->

<div class="ms_main">
<?php if ($contestant): ?>
   <div class="ms_left">
      <p class="ms_leftp1"><a href="<?php echo url_for('@application_edit?id=' . $sf_user->getAttribute('id')) ?>"><span>查看资料</span> Modify data</a></p>
      <p class="ms_leftp2"><span>我的照片</span> My photos</p>
      <p class="ms_leftp1"><a href="<?php echo url_for('@contestant_showmessage?id=' . $cid) ?>"><span>查看留言</span> Message</a></p>
   </div>
   
   <div class="ms_right">
     <div class="ms_right_title">
        <p class="ft20">我的照片 <a href="<?php echo url_for('@picture_upload') ?>"><span>上传新照片</span> </a></p>
       <p class="ft21">已上传照片</p>
     </div>
	 <?php if (count($pictures)): ?>
	<div class="uppic">
		<ul>
		   <?php foreach ($pictures as $picture): ?>
           <li><a href="<?php echo url_for('@picture_show?id='.$picture->getId()) ?>"><img src="<?php printf(sfConfig::get('app_path_contestant_picture_thumb'), $picture->getThumb()) ?>" width="135" height="90" alt="信息" /></a> <p><a href="<?php echo url_for('@picture_show?id='.$picture->getId()) ?>">查看</a> <font>|</font><?php echo link_to('删除', 'Picture/delete?id='.$picture->getId(), array('method' => 'delete', 'confirm' => '确定要删除吗?')) ?>
			  </p></li>
		   <?php endforeach; ?>
		</ul>
	    <div class="clear"></div>
     </div>
	 <div class="uppic_pagesize"><p>共<strong><?php echo $pager->getLastPage()?></strong>页<strong><?php echo $pager->getNbResults() ?></strong>张照片</p>
	 <?php include_partial('Pager/pager', array('pager' => $pager,'route' => 'picture')) ?> </div>
	
	<?php elseif(isset($pageoverflow)): ?>
	 <div class="uppic">
		<ul>
		<li>一共就<?php echo $pager->getLastPage()?>页，这一页没有内容，请返回到正确的页面</li>
		</ul>
		    <div class="clear"></div>
     </div>
	 <div class="uppic_pagesize"><p>共<strong><?php echo $pager->getLastPage()?></strong>页<strong><?php echo $pager->getNbResults() ?></strong>张照片</p>
	 <?php include_partial('Pager/pager', array('pager' => $pager,'route' => 'picture')) ?> </div>

	 <?php else: ?>
	 <div class="uppic">
		<ul>
		<li>还没有上传照片</li>
		</ul>
		    <div class="clear"></div>
     </div>
	 <?php endif ?>

	</div>
<?php else: ?>	
抱歉，您无法进行相关操作。
<?php endif ?>   
  <div class="clears"></div>
</div>
<div class="foot">
   <div class="foot_top"></div>
   <div class="foot_bottom">
      <p>
         <a href="/html/about_us.html">大赛简介</a><span>|</span>
         <a href="/html/sponsor.html">招商合作</a><span>|</span>
         <a href="/html/copyright.html">法律声明</a><span>|</span>
         <a href="/html/links.html">友情链接</a><span>|</span>
         <a href="/html/helpcenter.html">帮助中心</a><span>|</span>
         <a href="/html/Contact_us.html">联系我们</a>
      </p>
      <p>Copyright &copy; 2010 世界名模大赛组委会 版权所有</p>
      <p>
        <a href="http://www.miibeian.gov.cn/" target="_blank">京ICP备10212324号</a>
        <!--a href="">技术支持：奇谷科技</a-->
      </p>
   </div>
</div>

<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16216214-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
 <!--操作提示-->
<!--遮罩层-->
<div class="ts_zz"></div>

<!--提示层-->
<?php if ($sf_user->hasFlash('message')): ?>
<script type="text/javascript">
$(document).ready(function(){
  var a=0
  //隐藏弹出层
  $(".ts_close_btn").click(function(){
	 $(".ts,.ts_zz").hide();
  })
  
  //显示弹窗层
   $(".ts,.ts_zz").show();
   $(".ts_zz").css("height",$(document).height())
})
</script>
<div class="ts">
   <div class="ts_top">
   系统提示
   <div class="ts_close_btn"></div>
   </div>
   <div class="ts_bottom">
      <p><?php echo $sf_user->getFlash('message') ?></p>
   </div>
</div>
<?php endif ?>

  <?php if ($sf_request->getParameter('sf_warning')): ?>
    <?php echo $sf_request->getParameter('sf_warning') ?>
  <?php endif ?>
</body>
</html>